<template>
  <div class="current-plan">
    <van-nav-bar title="历史收益" left-arrow @click-left="goBack"></van-nav-bar>

    <!-- 暂无相关信息 -->
    <div v-show="dataList.length==0">
      <img
        style="width:100px;height:100px;margin-top:200px"
        src="../../assets/images/icon-record-gray@2x.png"
        alt
      >
      <li
        style="font-size:14px;font-family:PingFang-SC-Regular;font-weight:400;color:rgba(102,102,102,1);"
      >暂无历史收益</li>
    </div>
    <div v-show="dataList.length!=0">
      <!-- 列表循环 -->
      <div v-for="i in 15" :key="i.index" class="advantage">
        <div class="advantage-list">
          <div class="advantage-item">
            <div class="advantage-icon">
              <img style="width:7px;height:7px;" src="../../assets/images/icon-dot.png" alt>
            </div>
            <div class="advantage-con">
              <p class="title">
                投资收益
                <span style="position: absolute;right: 20px;margin-top:18px">+0.1</span>
              </p>
              <p class="cont">2019-11-23 14:46:23</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import axios from "axios";
import { NavBar, List, Cell, CellGroup ,Tab, Tabs,} from "vant";
import {} from "../../axios/api.js";
export default {
  components: {
    [NavBar.name]: NavBar,
    [List.name]: List,
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup,
    [Tab.name]: Tab,
    [Tabs.name]: Tabs
  },
  data() {
    return {
      data: {},
      dataList: []
    };
  },
  methods: {
    //返回上一页
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>
<style lang="less" scoped>
@import "../../assets/less/variable.less";

// 列表循环
.advantage {
  width: 100%;
  //   margin-top: 10px;
  border-bottom: 1px solid #efefef;
  //  border-bottom:1px solid #EFEFEF;
  .advantage-title {
    padding: 10px 0;
    font-size: @base_textSize;
    color: @base_textColor;
  }
  .advantage-list {
    padding: 0px 15px;
    .advantage-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .advantage-item {
      width: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 10px 0;
      border-bottom: @base_boder;
      .advantage-icon {
        // width: 10%;
        margin-right: 10px;
        font-size: 3em;
        color: #ff976a;
        margin-top: -22px;
        i {
          vertical-align: super;
        }
      }
      .advantage-con {
        width: 90%;
        .title {
          text-align: left;
          font-size: 14px;
          font-weight: bold;
          color: #323233;
        }
        .cont {
          text-align: left;
          font-size: 12px;
          color: #323233;
          margin: 5px 0;
        }
        .title span {
          font-size: 13px;
          font-family: PingFang-SC-Medium;
          font-weight: 500;
          color: rgba(209, 165, 104, 1);

          right: 16px;
        }
      }
    }
  }
}
</style>


